/**
 * Project Name:design-pattern <br/>
 * File Name:EnumerationIterator.java <br/>
 * Package Name:com.ftu.study.pattern.adapter <br/>
 */
package com.ftu.study.pattern.adapter;

import java.util.Enumeration;
import java.util.Iterator;

/**
 * <p>  </p>
 * @version 1.0 2018年12月3日 mq 
 */
public class EnumerationIterator implements Iterator {
    Enumeration enu;
    
    public EnumerationIterator(Enumeration enu) {
        this.enu = enu;
    }

    /* (non-Javadoc)
     * @see java.util.Iterator#hasNext()
     */
    @Override
    public boolean hasNext() {
        return enu.hasMoreElements();
    }

    /* (non-Javadoc)
     * @see java.util.Iterator#next()
     */
    @Override
    public Object next() {
        return enu.nextElement();
    }

}
